<template>
  <div class="">
    <el-button type="primary" @click="handleCopy">点我复制文本</el-button>
  </div>
</template>

<script>
import handleClipboard from '@/utils/clipboard'
export default {
  components: {},
  data() {
    return {

    }
  },
  methods: {
    handleCopy(event) {
      console.log(event)
      handleClipboard('我是被复制的文本', event)
    }
  }
}
</script>
<style scoped lang='scss'>
/* @import url(); 引入公共css类 */

</style>
